import java.util.*;

public class Sinhvien {

    private String MSSV;

    private String HoTen;

    private float DiemThi;


    public String getMSSV() {

        return MSSV;

    }


    public void setMSSV(String MSSV) {

        this.MSSV = MSSV;

    }


    public String getHoTen() {

        return HoTen;

    }


    public void setHoTen(String HoTen) {

        this.HoTen = HoTen;

    }


    public float getDiemThi() {

        return DiemThi;

    }


    public void setDiemThi(float DiemThi) {

        this.DiemThi = DiemThi;

    }

    public void NhapThongTin(){

        Scanner input=new Scanner(System.in);

        Scanner input2=new Scanner(System.in);

        System.out.print("Ho va ten SV   : ");

        String ht=input2.nextLine();

        setHoTen(ht);
	System.out.print("Ma so sinh vien: ");

        String MSSV=input.nextLine();

        setMSSV(MSSV);
        float dt;
        do{
        System.out.print("Diem thi cua SV: ");

        dt=input.nextFloat();

        setDiemThi(dt);
        }while( dt <0|| dt >10);
    }

    public void HienThi(){

        System.out.println("|\t"+getMSSV()+"  | \t"+getHoTen()+"    |  \t"+getDiemThi()+"        |");

        System.out.println("|----------------------------------------------------------|");

    }

}
